package com.yiyuan.app.entity.enums;

/**
 * @Author: sunxuzong
 * @Date: 2024/07/19
 */
public enum PushCoinsPrizeEnum {
    JP1("JP1","JP1"),
    JP2("JP2","JP2"),
    JP3("JP3","JP3"),
    JPALL("all","全盘奖")
    ;

    private String code;

    private String desc;

    PushCoinsPrizeEnum(String code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public static PushCoinsPrizeEnum getByCode(String code){
        for (PushCoinsPrizeEnum enums : PushCoinsPrizeEnum.values()){
            if (enums.getCode().equals(code)){
                return enums;
            }
        }
        return  null;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }
}
